Analyzing polymorphic advice

نویسندگان

  • Daniel S. Dantas
  • David Walker
  • Geoffrey Washburn
  • Stephanie Weirich
چکیده

We take one of the first steps towards developing a practical, statically-typed, functional, aspect-oriented programming language by showing how to integrate polymorphism and type analysis with aspect-oriented programming features. In particular, we demonstrate how to define type-safe polymorphic adviceusing pointcuts that unify a collection of polymorphic join points. We also introduce a new mechanism forspecifying context-sensitive advice that involves pattern matching against the current stack of activationrecords, and meshes well with functional programming idioms. We give our language meaning via atype-directed translation into an expressive, but fairly simple, type-safe intermediate language. Manycomplexities of the source language are eliminated in this translation, leading to a modular specificationof its semantics. One of the novelties of the intermediate language is the definition of polymorphic labelsfor marking control-flow points. These labels are organized in a tree structure such that a parent in thetree serves as a representative for the collection of all its children. Type safety requires that the type ofeach child is a generic instance of the type of the polymorphic parent. Similarly, when a set of labels isassembled as a pointcut, the type of each label is an instance of the type of the pointcut.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Type-directed weaving of aspects for polymorphically typed functional languages

Incorporating aspect-oriented paradigm to a polymorphically typed functional language enables the declaration of type-scoped advice, in which the effect of an aspect can be harnessed by introducing possibly polymorphic type constraints to the aspect. The amalgamation of aspect orientation and functional programming enables quick behavioral adaption of functions, clear separation of concerns and...

متن کامل

On the Pursuit of Static and Coherent Weaving

Aspect-oriented programming (AOP) has been shown to be a useful model for software development. Special care must be taken when we try to adapt AOP to strongly typed functional languages which come with features like type inference mechanism, polymorphic types, higher-order functions and type-scoped pointcuts. Specifically, it is highly desirable that weaving of aspect-oriented functional progr...

متن کامل

Sudden Cardiac Death in a Female Triathlete: Complexities of Risk Stratification

The prevention of sudden death in athletes is one the greatest challenges in sports cardiology. Early identification of athletes at high risk of sudden death can lead to difficult decisions such as restriction of competitive sports activity, but also treatment with medications and implantable cardioverter-defibrillator. We report a case of a 41-yearold female triathlete who had recurrent syncop...

متن کامل

A comparative study reveals the higher resolution of RAPD over ARDRA for analyzing diversity of Nostoc strains

Nostoc is a diverse genus of filamentous cyanobacteria with tremendous potential for agricultural and industrial applications. Morphometric methods and routine 16S rDNA-based identification undermines the genetic diversity and impedes strain-level differentiation. A comparative study to deduce the discriminatory power of random amplified polymorphic DNA (RAPD) and amplified ribosomal DNA restri...

متن کامل

Profile : USC / ISI Polymorphic Robotics Laboratory 1 USC / ISI Polymorphic Robotics Laboratory

Multi-database mining is an important research area because (1) there is an urgent need for analyzing data in different sources, (2) there are essential differences between monoand multi-database mining, and (3) there are limitations in existing multi-database mining efforts. This paper designs a new multidatabase mining process. Some research issues involving mining multi-databases, including ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004